package day01;

import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader;

import java.util.Arrays;

/**
 * @author Jetwang
 * @version 1.0
 * @since 2023/2/26 16:51
 */
public class Array01 {
    public static void main(String[] args) {
        // 静态赋值
        int[] arr01 = {1, 2, 3, 4, 6, 10};
        System.out.println(Arrays.toString(arr01));

        int[] arr02 = new int[]{2, 4, 5};

        // 动态分配
        int[] arr03 = new int[4];

        int[][] arr04 = {
                {11, 12, 13, 14, 15},
                {21, 22, 23, 24, 25},
                {31, 32, 33, 34, 35}
        };
    }
}
